set the name of card button id 33 to "Show Answers"
put 34 into zz
repeat until zz= 39
put empty into card field id zz
add 1 to zz
end repeat
end mouseUp
-- part 28 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=79 top=43 right=71 bottom=235
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
send mouseup to button "answerA"
end mouseUp
-- part 29 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=79 top=102 right=130 bottom=235
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
send mouseup to button "answerB"
end mouseUp
-- part 30 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=79 top=164 right=192 bottom=235
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
send mouseup to button "answerC"
end mouseUp
-- part 31 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=79 top=226 right=254 bottom=235
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
send mouseup to button "answerD"
end mouseUp
-- part 32 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=79 top=286 right=314 bottom=235
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
send mouseup to button "answerE"
end mouseUp
-- part 33 (button)
-- low flags: 00
-- high flags: 8004
-- rect: left=241 top=312 right=341 bottom=353
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show Answers
----- HyperTalk script -----
on mouseUp
get the short name of the target
if it ="Show Answers" then
answer "Show all answers?" with "Cancel" or "OK"
if it is "Cancel" then exit mouseup
set the name of the target to "Hide Answers"
put line 1 of bkgnd field 3 of card quiz1 into card field id 34 of card quiz
put line 2 of bkgnd field 3 of card quiz1 into card field id 35 of card quiz
put line 3 of bkgnd field 3 of card quiz1 into card field id 36 of card quiz
put line 4 of bkgnd field 3 of card quiz1 into card field id 37 of card quiz
put line 5 of bkgnd field 3 of card quiz1 into card field id 38 of card quiz
else
set the name of the target to "Show Answers"
put 34 into zz
repeat until zz= 39
put empty into card field id zz
add 1 to zz
end repeat
end if
end mouseUp
-- part 34 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=80 top=68 right=92 bottom=240
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ANSWERAr
-- part 35 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=79 top=127 right=151 bottom=239
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ANSWERBR
-- part 36 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=80 top=188 right=212 bottom=240
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ANSWERCR
-- part 37 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=80 top=250 right=274 bottom=240
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ANSWERDR
-- part 38 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=80 top=309 right=333 bottom=240
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ANSWERER
-- part 39 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=360 top=312 right=341 bottom=463
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return to Lab
----- HyperTalk script -----
on mouseUp
go to card quiz1
end mouseUp
-- part 40 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=251 top=164 right=295 bottom=504
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 256
-- line height: 16
-- part name: instruc
----- HyperTalk script -----
on mouseup
hide card field id 40
end mouseup
-- part 41 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=471 top=312 right=341 bottom=504
-- title width / last selected line: 0
-- icon id / first selected line: 32462 / 32462
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: help
----- HyperTalk script -----
on mouseUp
global flag
push card
go to card "help1"
end mouseUp
-- part 43 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=3 top=7 right=40 bottom=37
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: off
----- HyperTalk script -----
on mouseUp
--global x
get the short name of the target
if it is "off" then
set the name of the target to "on"
put 48 into x
repeat until x = 53
set the style of card button id x to transparent
put x+1 into x
end repeat
else
set the name of the target to "off"
put 48 into x
repeat until x = 53
set the style of card button id x to opaque
put x+1 into x
end repeat
end if
end mouseUp
-- part 48 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=5 top=44 right=72 bottom=33
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: checka
----- HyperTalk script -----
on mouseUp
if the short name of button id 43 is "on" then
show card field id 34
put line 1 of bkgnd field 3 of card quiz1 into card field id 34 of card quiz
wait 2 seconds
put empty into card field id 34
end if
end mouseUp
-- part 49 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=5 top=105 right=133 bottom=33
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: checka
----- HyperTalk script -----
on mouseUp
if the short name of button id 43 is "on" then
show card field id 34
put line 2 of bkgnd field 3 of card quiz1 into card field id 35 of card quiz
wait 2 seconds
put empty into card field id 35
end if
end mouseUp
-- part 50 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=5 top=164 right=192 bottom=33
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: checka
----- HyperTalk script -----
on mouseUp
if the short name of button id 43 is "on" then
show card field id 34
put line 3 of bkgnd field 3 of card quiz1 into card field id 36 of card quiz
wait 2 seconds
put empty into card field id 36
end if
end mouseUp
-- part 51 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=5 top=226 right=254 bottom=33
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: checka
----- HyperTalk script -----
on mouseUp
if the short name of button id 43 is "on" then
show card field id 34
put line 4 of bkgnd field 3 of card quiz1 into card field id 37 of card quiz
wait 2 seconds
put empty into card field id 37
end if
end mouseUp
-- part 52 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=5 top=287 right=315 bottom=33
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: checka
----- HyperTalk script -----
on mouseUp
if the short name of button id 43 is "on" then
show card field id 34
put line 5 of bkgnd field 3 of card quiz1 into card field id 38 of card quiz
wait 2 seconds
put empty into card field id 38
end if
end mouseUp
-- part contents for card part 26
----- text -----
Please select a reagent
bottle (A-E), before
selecting a solution.
-- part contents for card part 40
----- text -----
First click on a bottle (A-E), then click on a solution(1-7). To change your selection, click on the bottle again. To clear all answers, click on the "Clear" button.